|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.bidding.BidDetailsStrictSorterUtility
public class BidDetailsStrictSorterUtility
Comparator which sorts a set of BidDetails based on their utility. The bid with the highest utility is on the front of the list. In addition, the ordering is unique: bids with exactly the same utility are always ordered the same. Use this class ONLY when comparing if two strategies are equivalent.
| Constructor Summary | |
|---|---|
BidDetailsStrictSorterUtility()
|
|
| Method Summary | |
|---|---|
int |
compare(BidDetails b1,
BidDetails b2)
Comperator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Constructor Detail |
|---|
public BidDetailsStrictSorterUtility()
| Method Detail |
|---|
public int compare(BidDetails b1,
BidDetails b2)
compare in interface java.util.Comparator<BidDetails>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||